home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr11
/
powerb5.zip
/
P5WPR006.TIP
< prev
next >
Wrap
Text File
|
1993-06-01
|
2KB
|
67 lines
I wrote a variation of Bruce Purcell's WordPerfect 5.1 save
macro, shown in June's Star-Dot-Star, that avoids the
unneeded error message. Like his, mine prompts you for a
file name if you haven't saved the document and otherwise
saves it without prompting. The key to avoiding the error
message is to test the Name system variable, which contains
the file name, to determine if the document has already been
saved.
Robert J. Sandler
New Milford, New Jersey
Editor's Note: Mr. Sandler's macro was the first of nearly
100 responses suggesting improvements to the original. Most
of the submissions took the same approach as the one below;
they used {SYSTEM}Name to determine if the file needed a
name.
None, however, offered a clean solution to a different
problem pointed out by some readers: When WordPerfect was
set to use long document names, the macro would fail (the
prompts from the Save command are different when you use
long names). After querying several of WordPerfect's tech
support experts, I was able to write a macro that checked
for long file names by bringing up a file list that's hidden
by a {DISPLAY OFF} command. My macro, also shown below,
won't work with WordPerfect 5.1 revisions dated earlier than
6/29/90, but if you sometimes use long file names, you'll
find it useful.
Since these macros use macro-specific commands, you can't
create either of them simply by recording keystrokes; you
must use the macro editor. So, to save you the trouble of
dealing with this quirky editor, we've included the macro
that handles long document names on your PowerBase *.*
Volume 5 diskette as P5WPR\ALTS.WPM.
Robert Sandler's improved Quick Save macro:
{IF}"{SYSTEM}Name~"=""~
{Save}
{ELSE}
{Save}{Enter}y
{END IF}
A further improved macro which handles long document names:
{IF}"{SYSTEM}Name~"=""~
{Save}
{ELSE}
{DISPLAY OFF}
{List}{Enter}{ASSIGN}Long~{SYSTEM}Entry~~{Exit}
{Save}{Enter}
{IF}"{VARIABLE}Long~"="."~
{Enter}{Enter}
{END IF}
y
{END IF}
Title: WordPerfect Quick Save Redux
Category: WPR
Issue Date: October, 1992
Editor: Brett Glass
Supplementary Files: P5WPR\ALTS.WPM
Filename: P5WPR006.TIP